package com.example.comment_oa.pojos.attendance;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.example.comment_oa.pojos.SysEmployee;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName holiday_ap
 */
@TableName(value ="holiday_ap")
@Data
public class HolidayAp implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer hoApId;

    /**
     * 
     */
    private Integer holidayTypeId;

    /**
     * 
     */
    private String userHo;

    /**
     * 
     */
    private Date hoApTime;

    /**
     * 
     */
    private Date hoApYesTime;

    /**
     * 
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH")
    @JsonFormat(pattern = "yyyy-MM-dd HH",timezone = "GMT+8")
    private Date hoApStartTime;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH")
    private Date hoApEndTime;

    /**
     * 
     */
    private Double hoTime;

    /**
     * 
     */
    private String hoApReason;

    /**
     * 
     */
    private Integer hoState;

    /**
     * 
     */
    private String hoWater;

    private String hoPath;

    private int hoIsMoney;

    private String hoYesUser;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    //请假天数
    @TableField(exist = false)
    private int holiDaynum=0;
    //time集合
    @TableField(exist = false)
    private List<Date> time;
    //假期类型
    @TableField(exist = false)
    private HolidayType holidayType;

    @TableField(exist = false)
    private SysEmployee sysEmployee;
}